// 调试邮箱验证
console.log('=== 邮箱验证调试 ===');
const invalidEmails = [
  'invalid-email',
  '@example.com',
  'user@',
  'user@.com',
  'user..name@example.com',
  'user@example',
  'user@.com.',
  '.user@example.com'
];

invalidEmails.forEach(email => {
  const isValid = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
  console.log(`${email}: ${isValid}`);
});

// 调试日期验证
console.log('\n=== 日期验证调试 ===');
const invalidDates = [
  'invalid-date',
  '2025-13-01',
  '2025-02-30',
  '2023-02-29',
  'not-a-date',
  '2025/13/01'
];

invalidDates.forEach(dateString => {
  const date = new Date(dateString);
  const isValid = !isNaN(date.getTime());
  console.log(`${dateString}: ${isValid} (${date.toString()})`);
}); 
 
 